import instance from "@/utils/http"

export const getGoodsInfoBySecondGoodsTypeIdData = (pageInfo) => {
    return instance.post('goods/goodsType/appGetGoodsInfoBySecondGoodsTypeId',pageInfo)
}

export const getGoodsInfoById = (id) => {
    return instance.get('goods/goodsInfo/appGetGoodsInfoById',{
        params:{
            id
        }
    })
}

export const getGoodsHotByGoodsId = (id,type) => {
    return instance.get('goods/goodsInfo/appGetGoodsHotByGoodsId',{
        params:{
            id,
            type: type
        }
    })
}